<%@ page import="DroidEye.JavaBean.ApplyBean" %>
<%@ page import="java.util.List" %>
<%@ page import="DroidEye.DAO.StudentDAO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="RightSideBackGroundSetter.jsp"/>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center class="center font18 bold">为项目分配管理员</center>
<%
    String thisAdjuID = request.getParameter("message");
    //session.setAttribute("ThisAdjuID",thisAdjuID);
    List<ApplyBean> projectList;
    StudentDAO studentDAO = StudentDAO.getStudentDAOInstance();
    projectList = studentDAO.queryAllSelectedProject();
%>
<div class="pad10">
    <div class="pad-bottom10">
        <%
            if (projectList.isEmpty()) {

        %>
        暂无申报项目信息，请督促教师添加。<a href="AdminHasLoginTest.jsp">返回</a>
        <%
        } else {
        %>
        <div class="font18 bold">可分配评审员的项目如下</div>
        <div class="font18">点击学生学号可为其设置评审员</div>
    </div>
    <table class="tablelist">
        <tr>
            <th align="center" valign="middle" width="70px">学生学号</th>
            <th align="center" valign="middle" width="70px">学生姓名</th>
            <th align="center" valign="middle" width="70px">负责教师号</th>
            <th align="center" valign="middle" width="70px">负责教<br>师姓名</th>
            <th align="center" valign="middle" width="70px">项目号</th>
            <th align="center" valign="middle" width="80px">项目名</th>
            <th align="center" valign="middle">申报内容</th>
            <th align="center" valign="middle">指导内容</th>
            <th align="center" valign="middle"  width="70px">申报进度</th>
            <th align="center" valign="middle"  width="70px">通过状态</th>
            <th align="center" valign="middle" width="60px">目前<br>总分</th>
            <th align="center" valign="middle" width="60px">目前评<br>审员数</th>

        </tr>
        <%
            for (ApplyBean apply : projectList
                    ) {
                if (apply.getProjectProgress().equals("已辅导，并通过，待评分")&&
                        apply.getPassStatus().equals("通过")) {
        %>
        <tr>
            <td align="center" valign="middle">
                <a href="AdminMakeProjectAdju.jsp?message=<%=apply.getStudentID()%>&message2=<%=thisAdjuID%>">
                    <%=apply.getStudentID()%>
                </a>
            </td>
            <td align="center" valign="middle"><%=apply.getStudentName()%>
            </td>
            <td align="center" valign="middle"><%=apply.getTeacherID()%>
            </td>
            <td align="center" valign="middle"><%=apply.getTeacherName()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectID()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectName()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectContent()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectTeach()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectProgress()%>
            </td>
            <td align="center" valign="middle"><%=apply.getPassStatus()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectTotalScore()%>
            </td>
            <td align="center" valign="middle"><%=apply.getAdjuNumber()%>
            </td>
        </tr>
        <%
                    }
                }
            }
        %>

    </table>
    <div class="pad10">
        <a href="AdminSetProjectAdju.jsp" class="button-normal">返回</a>
    </div>
</div>
</body>
</html>
